home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / A.D. Software / OOFGraph / Application Source / studenttest.cpp < prev    next >
C/C++ Source or Header  |  1996-05-10  |  885b  |  39 lines

  1. #include "studenttest.hpp"
  2.  
  3. #ifdef OOF_SmartHeap
  4.     #include "smrtheap.hpp"
  5. #endif
  6.  
  7. void dbStudent::Add(const char *name, const char *subject, const long mark)
  8. {
  9.     newRecord();
  10.     Name = name;
  11.     Subject = subject;
  12.     Mark = mark;
  13.     saveRecord();
  14. }
  15.  
  16.  
  17. void dbStudent::AddTestData()
  18. {
  19.     Add("Alice Chan", "Maths", 62); 
  20.     Add("Alice Chan", "Social Studies", 72); 
  21.     Add("Alice Chan", "English", 65); 
  22.     Add("Alice Chan", "Science", 82); 
  23.  
  24.     Add("Kathy Robins", "Maths", 82); 
  25.     Add("Kathy Robins", "Social Studies", 54); 
  26.     Add("Kathy Robins", "English", 44); 
  27.     Add("Kathy Robins", "Science", 75);
  28.  
  29.     Add("Brett Baker", "Maths", 65); 
  30.     Add("Brett Baker", "Social Studies", 78); 
  31.     Add("Brett Baker", "English", 64); 
  32.     Add("Brett Baker", "Science", 72); 
  33.  
  34.     Add("Jack Smith", "Maths", 71); 
  35.     Add("Jack Smith", "English", 56); 
  36.     Add("Jack Smith", "Science", 81); 
  37.     Add("Jack Smith", "Social Studies", 35); 
  38. }
  39.